Function Reference

_IEBodyReadText

Returns the Text inside the tag of the document.

#include <IE.au3>
_IEBodyReadText ( ByRef $o_object )

 

Parameters

$o_object Object variable of an InternetExplorer.Application, Window or Frame object

 

Return Value

Success: Returns the Text included in the of the docuement
Failure: Returns 0 and sets @ERROR
@Error: 0 ($_IEStatus_Success) = No Error
3 ($_IEStatus_InvalidDataType) = Invalid Data Type
@Extended: Contains invalid parameter number

 

Remarks

This function uses the .innerText property of the document Body. .innerText is available for nearly all DOM elements and is a fast convenient method of parsing out just the text in a document.

 

Related

_IEBodyReadHTML, _IEBodyWriteHTML

 

Example


; *******************************************************
; Example 1 - Open a browser with the basic example, read the body Text
;               (the content with all HTML tags removed) and display it in a MsgBox
; *******************************************************
;
#include <IE.au3>
$oIE = _IE_Example ("basic")
$sText = _IEBodyReadText ($oIE)
MsgBox(0, "Body Text", $sText)